export default{
    props:['title','name' ,'age'],
    emits:["guowang"],
    data(){
        return {
            con:0
        }
    },
    template:`<h1 class="zuojian-box">{{title}}</h1>
    <h1 class="zuojian-box">{{name}}</h1>
    <h1 class="zuojian-box">{{age}}</h1>
    <button @click="$emit('guowang')">{{con}}</button>`
    //生成一个事件
}